import com.asiahr.*;
import com.asiahr.AutoGenerateProperties.Builder;

public class GenerateMain {
    public static void main(String[] args) {
        ConnectionCreator connectionCreator =
                new DatabaseConnectionCreator("192.168.1.151",
                        "3306",
                        "root",
                        "passW0rd",
                        "heycoffee",
                        "mysql");
        GeneratorWithDBMetadata codeGenerator = new GeneratorWithDBMetadata(connectionCreator);
        codeGenerator.changeDefaultTemplate("/asiahrTemplate");

        codeGenerator.propertiesSet
                ((new AutoGenerateProperties.Builder())
//                        .inProject("asiahr-crm")
                        .inBasePackage("com.hicoffee.bm")
//                        .neededModel(true)
                        .neededAll(true)
                        .generatedInResourcesPath(true)
                        .build())
                .generateCode(new String[]{""});
    }
}
